package com.cjm.one.model.order.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.cjm.one.model.base.BaseEnum;
import com.fasterxml.jackson.annotation.JsonEnumDefaultValue;
import com.fasterxml.jackson.annotation.JsonValue;

public enum OrderParamsTypeEnum implements BaseEnum {
    @JsonEnumDefaultValue
    ALL(0, "全部"),
    ING(1, "进行中"),
    WAIT_COMMENT(2, "待评价"),
    AFTER_SALES(3, "退款/售后");
    @EnumValue
    @JsonValue
    private int code;
    private String message;
    OrderParamsTypeEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }
    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
